package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务管理业务对象 pro_task
 *
 * @author ruoyi
 * @date 2023-05-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ProTaskBo extends BaseEntity {

    /**
     * 任务ID
     */
    @NotNull(message = "任务ID不能为空", groups = { EditGroup.class })
    private Long taskId;

    /**
     * 任务时间
     */
    @NotNull(message = "任务时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ddate;

    /**
     * 项目ID
     */
    private Long subjectId;

    /**
     * 项目编号
     */
    private String subjectNo;
    /**
     * 项目名称
     */
    @NotBlank(message = "项目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subjectName;

    /**
     * 任务名称
     */
    @NotBlank(message = "任务名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskName;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String desp;

    /**
     * 立项时间
     */
    @NotNull(message = "立项时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date fireDate;

    /**
     * 要求完成时间
     */
    @NotNull(message = "要求完成时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date demandDate;

    /**
     * 任务状态
     */
    @NotBlank(message = "任务状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 负责人
     */
    private String headUser;

    /**
     * 抄送人
     */
    private String copyUser;


    /**
     * 项目进度
     */
    @NotNull(message = "项目进度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long rate;
    private String category;

}
